<?php
  error_reporting(0);

  $host="localhost";
  $username="root";
  $password="";
  $database="hanapin";
  
  $sectionname = mysql_real_escape_string($_GET["sectionname"]);
  $y = $_GET["ycoor"];
  $z = $_GET["xcoor"];
  $description = mysql_real_escape_string($_GET["description"]);
  $classificationid = "";
  $floorplanid = 1;

  $connection = mysql_connect("$host", "$username", "$password"); 
  mysql_select_db("$database")or die(mysql_error());
  
  $query = "INSERT INTO section(name, description, x, y, floorplanid) VALUES('$sectionname', '$description', '$z', '$y', '$floorplanid')";
  $result = mysql_query($query);
  echo $result;